package com.yjdb.sanyuantang.common.entity;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;


@Data
@TableName("sys_admin_relation_role")
@Schema(name = "sys_admin_relation_role")
public class SysAdminRelationRole implements Serializable {

    /**
    * 后台用户角色绑定id
    */
    @TableId(type = IdType.AUTO)
    @Schema(description="后台用户角色绑定id")
    private Long id;


    /**
    * 后台用户id
    */
    @TableField("admin_id")
    @Schema(description="后台用户id")
    private Long adminId;


    /**
    * 角色id
    */
    @TableField("role_id")
    @Schema(description="角色id")
    private String roleId;


    /**
    * 创建时间
    */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description="创建时间")
    private Date createTime;


    /**
    * 更新时间
    */
    @TableField("updata_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description="更新时间")
    private Date updataTime;


    private static final long serialVersionUID = 1L;
}
